﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" CodeFile="EmailRestrictions.aspx.cs" Inherits="Admin_EmailRestrictions" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <telerik:RadGrid ID="grid" runat="server" AllowAutomaticDeletes="True" 
        AllowAutomaticInserts="True" AllowAutomaticUpdates="True" AllowPaging="True" 
        AllowSorting="True" DataSourceID="ds" GridLines="None" Skin="Telerik" AutoGenerateColumns="false" >
<HeaderContextMenu EnableTheming="True">
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</HeaderContextMenu>

<MasterTableView CommandItemDisplay="Bottom" DataSourceID="ds" 
            InsertItemDisplay="Bottom" EditMode="InPlace" DataKeyNames="Id">
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>

<ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
<Columns>
    <acms:RadIndexColumn />
    <acms:RadGridTextBoxColumn HeaderText="Email Filter" DataField="EmailFilter" SortExpression="EmailFilter" Required="true" />
    <telerik:GridCheckBoxColumn HeaderText="Access" DataField="Access" SortExpression="Access" />
    <telerik:GridBoundColumn ReadOnly="true" HeaderText="Created" DataField="Created" SortExpression="Created" />
    <acms:RadGridEditColumn />
    <acms:RadGridDeleteColumn />
</Columns>
</MasterTableView>

<FilterMenu EnableTheming="True">
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
</FilterMenu>

    </telerik:RadGrid>
    <acms:EventDrivenDataSource ID="ds" runat="server" oninsert="ds_Insert" onupdate="ds_Update" onselect="ds_Select" OnDelete="ds_Delete" />
        <telerik:RadAjaxManager ID="ajaxManager" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="grid">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="grid" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
</asp:Content>

